#!coding=utf-8

from django.conf.urls import url

from Wechat import views

urlpatterns = [
    url(r'^connect$', views.connect),
    url(r'^hardware$', views.hardware),
    url(r'^mydevice$', views.mydevice),
    url(r'^adddevice$', views.adddevice),
    url(r'^devicestatus/(?P<device_type>[0-9a-zA-Z_]+)/(?P<device_id>[0-9a-zA-Z_]+)$', views.devicestatus),
    url(r'^sendmessage/(?P<device_type>[0-9a-zA-Z_]+)/(?P<device_id>[0-9a-zA-Z_]+)/(?P<opcode>[0-9a-zA-Z_]+)$', views.sendmessage),
    url(r'^test$', views.test),
    url(r'^test_add$', views.test_add),
]